const sequelize = require('sequelize')
const db = require('@/database')

//定义影院座位数据表
const Seat = db.define('aa_seat', {
    id: {
        type: sequelize.INTEGER,
        primaryKey: true,//主键
        autoIncrement: true,//自动增长
        allowNull: false,//不允许为空
        field: 'id',
        comment: '主键,座位ID'
    },
    seatinfo: {
        type: sequelize.JSON(),
        allowNull: false,
        field: 'seatinfo',
        comment: '座位信息'
    },
    time_id: {
        type: sequelize.INTEGER(),
        allowNull: false,
        field: 'time_id',
        comment: '所属放映场次'
    }

}, { timestamps: true, updatedAt: false })
module.exports = Seat